import http from "./index";
export const regisUserApi = (page) =>
    http({
        url: '/user/selectByPageWithPulldown',
        method: 'POST',
        params: {
            page
        }

    })

export const regisSelectApi = (numberValidateForm) =>
    http({
        url: '/user/selectByTerms',
        method: 'POST',
        params: numberValidateForm

    })


export const addcusApi = (user) =>
    http({
        url: '/user/insert',
        method: 'POST',
        data: user
    })


export const putcontro = (content, phone) =>
    http({
        url: '/captcha/sms',
        method: 'POST',
        params: {
            content,
            phone
        }
    })


export const delecus = (phone) =>
    http({
        url: '/user/deleteByPhone',
        method: 'POST',
        data: {
            phone
        }
    })